<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<%@ page import="data.BoardData" 
	import="java.util.*" import="model.Board" %>
<table border="1">  
	<tr>
		<td> 번호 </td> <td> 제목 </td> <td>그림</td>
	</tr>
<%  
	BoardData data=new BoardData();
	ArrayList<Board> list =data.getList();
	for(int i=0; i< list.size() ; i++){ 
		Board board=list.get(i);
		int no=board.getNo();
		String title =board.getTitle();
		String src=board.getSrc();
		%> 
		<tr> 
			<td><%=no%> </td> 
			<td><%=title %> </td>     
			<td><img src="<%=src%>" height="150"></td>
		</tr>
		<%
	}   
%>
</table>
	   
	
	
</body>
</html>